﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 教室客户端
{
    [System.Runtime.Serialization.DataContract]
    public class JSON_SubmitData
    {
        [System.Runtime.Serialization.DataMember(Order = 0)]
        public bool success;
        [System.Runtime.Serialization.DataMember(Order = 1)]
        public int errIndex;
        [System.Runtime.Serialization.DataMember(Order = 2)]
        public string message;
    }
    [System.Runtime.Serialization.DataContract]
    public class JSON_LoginData
    {
        [System.Runtime.Serialization.DataMember(Order = 0)]
        public bool success;
        [System.Runtime.Serialization.DataMember(Order = 1)]
        public JSON_TeacherData Teacher;
        [System.Runtime.Serialization.DataMember(Order = 2)]
        public JSON_ExperimentData[] Experiments;
        [System.Runtime.Serialization.DataMember(Order = 4)]
        public string message;
    }
    [System.Runtime.Serialization.DataContract]
    public class JSON_ExperimentData
    {
        [System.Runtime.Serialization.DataMember(Order=0)]
        public string ID;
        [System.Runtime.Serialization.DataMember(Order = 1)]
        public string Name;
        [System.Runtime.Serialization.DataMember(Order = 2)]
        public string Room;
        [System.Runtime.Serialization.DataMember(Order = 3)]
        public JSON_ExperimentTime[] Times;
        [System.Runtime.Serialization.DataMember(Order = 4)]
        public bool Week1;
        [System.Runtime.Serialization.DataMember(Order = 5)]
        public bool Week2;
        [System.Runtime.Serialization.DataMember(Order = 6)]
        public bool Week3;
        [System.Runtime.Serialization.DataMember(Order = 7)]
        public bool Week4;
        [System.Runtime.Serialization.DataMember(Order = 8)]
        public bool Week5;
        [System.Runtime.Serialization.DataMember(Order = 9)]
        public bool Week6;
        [System.Runtime.Serialization.DataMember(Order = 10)]
        public bool Week7;
    }
    [System.Runtime.Serialization.DataContract]
    public class JSON_ExperimentTime
    {
        [System.Runtime.Serialization.DataMember(Order = 0)]
        public int StartTime;
        [System.Runtime.Serialization.DataMember(Order = 1)]
        public int EndTime;
    }
    [System.Runtime.Serialization.DataContract]
    public class JSON_TeacherData
    {
        [System.Runtime.Serialization.DataMember(Order = 0)]
        public string ID;
        [System.Runtime.Serialization.DataMember(Order = 1)]
        public string Name;
        [System.Runtime.Serialization.DataMember(Order = 2)]
        public string[] ExperimentIDs;
    }
}
